<?php 

if ($this->operation=="Copy") {
	
	$targetPortalId=getParameter("targetportal");
	if ($targetPortalId=="none") $targetPortalId=null;
	/*CopyAuthorings("key_m",$targetPortalId);
	header("Location:".createRelativeUrl("operation","list"));*/
	
	$id=getParameter("ButterflyPortal_sys_rec");
	CopyAuthoring($id,$targetPortalId);

	header("Location: index.php?table=portal_authoringtemplate&filter=1&succes=Copy Successful");
}

/*
*/
?>

